package com.jiyi.widget;

import com.github.mikephil.charting.components.AxisBase;
import com.github.mikephil.charting.formatter.IAxisValueFormatter;

import java.text.DecimalFormat;

public class MyTimeAxisValueFormatter implements IAxisValueFormatter
{

    private DecimalFormat mFormat;

    public MyTimeAxisValueFormatter() {
//        mFormat = new DecimalFormat("###,###,###,##0.0");
    }

    @Override
    public String getFormattedValue(float value, AxisBase axis) {
        return (int)value + " 次";
    }
}
